package com.zatech.cgnci.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zatech.cgnci.project.base.utils.ConvertUtils;
import com.zatech.cgnci.project.entity.CgnciRiskThresholdDO;
import com.zatech.cgnci.project.mapper.CgnciRiskThresholdMapper;
import com.zatech.cgnci.project.service.CgnciRiskThresholdService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zatech.cgnci.project.vo.CgnciRiskThresholdVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 风险阈值表 服务实现类
 * </p>
 *
 * @author Generator
 * @since 2025-02-26
 */
@Service
public class CgnciRiskThresholdServiceImpl extends ServiceImpl<CgnciRiskThresholdMapper, CgnciRiskThresholdDO> implements CgnciRiskThresholdService {

    @Override
    public List<CgnciRiskThresholdVO> selectData() {
        return ConvertUtils.convert(this.baseMapper.selectList(new LambdaQueryWrapper<CgnciRiskThresholdDO>().orderByAsc(CgnciRiskThresholdDO::getThresholdName)),CgnciRiskThresholdVO.class);
    }


}
